// 封装本地存储函数
const KEY = 'homeCity'
// 设置
export const setInfoCity = (value) => {
  window.localStorage.setItem(KEY, value)
}
// 获取
export const getInfoCity = () => {
  return window.localStorage.getItem(KEY)
}
// 删除
export const removeInfoCity = () => {
  window.localStorage.removeItem(KEY)
}
// 封装房屋详情
const ZHI = 'houseDetails'
// 设置
export const setHouse = (value) => {
  window.localStorage.setItem(ZHI, value)
}
// 获取
export const getHouse = () => {
  return window.localStorage.getItem(ZHI)
}
// 删除
export const removeHouse = () => {
  window.localStorage.removeItem(ZHI)
}
